<html>
<head>
<title>Second Modal</title>
<script>
  function openModal() {
    window.showModalDialog("modal_3.html",'dialogWidth:250px;dialogHeight:200px;resizable:yes')
  }
</script>
</head>
 
<body>
<p>Modal dialog sample</p>

<input type="button" value="btn3" onclick="openModal();">

<a id="lnk3" href="javascript:openModal()">lnk3</a>
<div>

</div>
</body>
</html>